<template>
  <div class="enterprise-display-page">
    <div class="page-header">
      <h1 class="page-title">企业展示</h1>
      <p class="page-subtitle">专业、高效、值得信赖的法律服务机构</p>
    </div>

    <div class="content-container">
      <!-- 企业概况 -->
      <div class="enterprise-overview mb-6">
        <div class="flex items-center mb-4">
          <div class="w-16 h-16 bg-blue-100 rounded-xl flex items-center justify-center mr-4">
            <i class="fas fa-building text-blue-600 text-2xl"></i>
          </div>
          <div>
            <h2 class="text-xl font-bold text-gray-800">律智法律事务所</h2>
            <p class="text-gray-600">专业、高效、值得信赖的法律服务机构</p>
          </div>
        </div>
        
        <!-- 好评率和评价 -->
        <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-6">
          <div class="bg-gradient-to-r from-green-50 to-green-100 p-4 rounded-lg text-center">
            <div class="text-2xl font-bold text-green-600 mb-1">98.5%</div>
            <div class="text-sm text-green-700">客户好评率</div>
          </div>
          <div class="bg-gradient-to-r from-blue-50 to-blue-100 p-4 rounded-lg text-center">
            <div class="text-2xl font-bold text-blue-600 mb-1">4.9</div>
            <div class="text-sm text-blue-700">平均评分</div>
          </div>
          <div class="bg-gradient-to-r from-purple-50 to-purple-100 p-4 rounded-lg text-center">
            <div class="text-2xl font-bold text-purple-600 mb-1">1,235</div>
            <div class="text-sm text-purple-700">服务案件</div>
          </div>
          <div class="bg-gradient-to-r from-orange-50 to-orange-100 p-4 rounded-lg text-center">
            <div class="text-2xl font-bold text-orange-600 mb-1">15年</div>
            <div class="text-sm text-orange-700">执业经验</div>
          </div>
        </div>
      </div>

      <!-- 业绩展示 -->
      <div class="enterprise-achievements mb-6">
        <h3 class="text-lg font-bold text-gray-800 mb-4 flex items-center">
          <i class="fas fa-trophy text-yellow-500 mr-2"></i>业绩展示
        </h3>
        
        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
          <!-- 成功案例 -->
          <div class="bg-white border border-gray-200 rounded-lg p-4">
            <h4 class="font-semibold text-gray-800 mb-3 flex items-center">
              <i class="fas fa-gavel text-blue-600 mr-2"></i>成功案例
            </h4>
            <div class="space-y-3">
              <div class="flex justify-between items-center p-3 bg-gray-50 rounded">
                <span class="text-sm text-gray-700">重大交通事故赔偿案</span>
                <span class="text-sm font-semibold text-green-600">胜诉</span>
              </div>
              <div class="flex justify-between items-center p-3 bg-gray-50 rounded">
                <span class="text-sm text-gray-700">医疗事故纠纷案</span>
                <span class="text-sm font-semibold text-green-600">和解</span>
              </div>
              <div class="flex justify-between items-center p-3 bg-gray-50 rounded">
                <span class="text-sm text-gray-700">工伤赔偿案</span>
                <span class="text-sm font-semibold text-green-600">胜诉</span>
              </div>
              <div class="flex justify-between items-center p-3 bg-gray-50 rounded">
                <span class="text-sm text-gray-700">建筑工程纠纷案</span>
                <span class="text-sm font-semibold text-green-600">胜诉</span>
              </div>
            </div>
          </div>

          <!-- 客户锦旗 -->
          <div class="bg-white border border-gray-200 rounded-lg p-4">
            <h4 class="font-semibold text-gray-800 mb-3 flex items-center">
              <i class="fas fa-flag text-red-600 mr-2"></i>客户锦旗
            </h4>
            <div class="space-y-3">
              <div class="p-3 bg-red-50 rounded border border-red-100">
                <p class="text-sm font-medium text-red-800 mb-1">"执法为民，服务至上"</p>
                <p class="text-xs text-red-600">— 交通事故受害者家属</p>
              </div>
              <div class="p-3 bg-blue-50 rounded border border-blue-100">
                <p class="text-sm font-medium text-blue-800 mb-1">"专业负责，值得信赖"</p>
                <p class="text-xs text-blue-600">— 工伤赔偿当事人</p>
              </div>
              <div class="p-3 bg-green-50 rounded border border-green-100">
                <p class="text-sm font-medium text-green-800 mb-1">"维护正义，为民服务"</p>
                <p class="text-xs text-green-600">— 医疗纠纷患者</p>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- 专业团队 -->
      <div class="professional-team mb-6">
        <h3 class="text-lg font-bold text-gray-800 mb-4 flex items-center">
          <i class="fas fa-users text-blue-500 mr-2"></i>专业团队
        </h3>
        
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
          <div v-for="lawyer in lawyers" :key="lawyer.id" class="bg-white border border-gray-200 rounded-lg p-4">
            <div class="flex items-center mb-3">
              <div class="w-12 h-12 bg-gray-200 rounded-full flex items-center justify-center mr-3">
                <i class="fas fa-user-tie text-gray-600"></i>
              </div>
              <div>
                <h5 class="font-semibold text-gray-800">{{ lawyer.name }}</h5>
                <p class="text-sm text-gray-600">{{ lawyer.title }}</p>
              </div>
            </div>
            <div class="space-y-1 text-sm text-gray-600">
              <p><i class="fas fa-graduation-cap mr-2"></i>{{ lawyer.education }}</p>
              <p><i class="fas fa-briefcase mr-2"></i>{{ lawyer.experience }}年执业经验</p>
              <p><i class="fas fa-star mr-2"></i>专长：{{ lawyer.speciality }}</p>
            </div>
          </div>
        </div>
      </div>

      <!-- 服务流程 -->
      <div class="service-process mb-6">
        <h3 class="text-lg font-bold text-gray-800 mb-4 flex items-center">
          <i class="fas fa-cogs text-purple-500 mr-2"></i>服务流程
        </h3>
        
        <div class="grid grid-cols-1 md:grid-cols-4 gap-4">
          <div v-for="(step, index) in serviceSteps" :key="index" class="text-center">
            <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-3">
              <i :class="step.icon" class="text-blue-600 text-xl"></i>
            </div>
            <h4 class="font-semibold text-gray-800 mb-2">{{ step.title }}</h4>
            <p class="text-sm text-gray-600">{{ step.description }}</p>
          </div>
        </div>
      </div>

      <!-- 联系方式 -->
      <div class="contact-info">
        <h3 class="text-lg font-bold text-gray-800 mb-4 flex items-center">
          <i class="fas fa-phone text-green-500 mr-2"></i>联系我们
        </h3>
        
        <div class="bg-white border border-gray-200 rounded-lg p-6">
          <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
            <div>
              <div class="space-y-3">
                <div class="flex items-center">
                  <i class="fas fa-phone text-green-600 mr-3"></i>
                  <span class="text-gray-700">咨询热线：400-888-9999</span>
                </div>
                <div class="flex items-center">
                  <i class="fas fa-envelope text-blue-600 mr-3"></i>
                  <span class="text-gray-700">邮箱：info@lvzhi-law.com</span>
                </div>
                <div class="flex items-center">
                  <i class="fas fa-map-marker-alt text-red-600 mr-3"></i>
                  <span class="text-gray-700">地址：上海市浦东新区世纪大道1000号</span>
                </div>
              </div>
            </div>
            <div>
              <div class="space-y-3">
                <div class="flex items-center">
                  <i class="fas fa-clock text-orange-600 mr-3"></i>
                  <span class="text-gray-700">工作时间：周一至周五 9:00-18:00</span>
                </div>
                <div class="flex items-center">
                  <i class="fas fa-comments text-purple-600 mr-3"></i>
                  <span class="text-gray-700">在线咨询：24小时在线服务</span>
                </div>
                <div class="flex items-center">
                  <i class="fas fa-shield-alt text-indigo-600 mr-3"></i>
                  <span class="text-gray-700">服务承诺：专业、保密、高效</span>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { ref } from 'vue'

export default {
  name: 'EnterpriseDisplay',
  setup() {
    const lawyers = ref([
      {
        id: 1,
        name: '张律师',
        title: '高级合伙人',
        education: '中国政法大学法学硕士',
        experience: 15,
        speciality: '交通事故、人身损害'
      },
      {
        id: 2,
        name: '李律师',
        title: '资深律师',
        education: '华东政法大学法学学士',
        experience: 12,
        speciality: '医疗纠纷、工伤赔偿'
      },
      {
        id: 3,
        name: '王律师',
        title: '执业律师',
        education: '上海大学法学硕士',
        experience: 8,
        speciality: '建筑工程、合同纠纷'
      }
    ])

    const serviceSteps = ref([
      {
        icon: 'fas fa-comments',
        title: '初步咨询',
        description: '免费法律咨询，了解案件基本情况'
      },
      {
        icon: 'fas fa-file-alt',
        title: '案件评估',
        description: '专业律师评估案件，制定解决方案'
      },
      {
        icon: 'fas fa-handshake',
        title: '签订合同',
        description: '签订委托代理合同，明确服务内容'
      },
      {
        icon: 'fas fa-gavel',
        title: '法律服务',
        description: '全程跟进案件，提供专业法律服务'
      }
    ])

    return {
      lawyers,
      serviceSteps
    }
  }
}
</script>

<style scoped>
.enterprise-display-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

.content-container {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.enterprise-overview,
.enterprise-achievements,
.professional-team,
.service-process,
.contact-info {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

/* Grid 样式 */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

/* 响应式 */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Flex 样式 */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* 文本样式 */
.text-center {
  text-align: center;
}

.text-xl {
  font-size: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

/* 颜色样式 */
.text-gray-800 {
  color: #1f2937;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-600 {
  color: #4b5563;
}

.text-green-600 {
  color: #059669;
}

.text-blue-600 {
  color: #2563eb;
}

/* 背景色 */
.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-200 {
  background-color: #e5e7eb;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

/* 边框 */
.border {
  border-width: 1px;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* 间距 */
.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mr-4 {
  margin-right: 1rem;
}

/* 宽高 */
.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

/* 空间 */
.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

/* 渐变背景 */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-green-50 {
  --tw-gradient-from: #f0fdf4;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 253, 244, 0));
}

.to-green-100 {
  --tw-gradient-to: #dcfce7;
}

.from-blue-50 {
  --tw-gradient-from: #eff6ff;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0));
}

.to-blue-100 {
  --tw-gradient-to: #dbeafe;
}

.from-purple-50 {
  --tw-gradient-from: #faf5ff;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 245, 255, 0));
}

.to-purple-100 {
  --tw-gradient-to: #e9d5ff;
}

.from-orange-50 {
  --tw-gradient-from: #fff7ed;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 247, 237, 0));
}

.to-orange-100 {
  --tw-gradient-to: #fed7aa;
}
</style>

